const TOKEN_KEY = 'Geek-token'


const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, JSON.stringify(token))
}


const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY)
}


const getToken = () => {
  return JSON.parse(localStorage.getItem(TOKEN_KEY))
}


export { setToken, getToken, removeToken }
